const express=require("express");
//创建路由
const router=express.Router();
const person={
    name:"jack",
    age:12,
    gender:"nan",
    hobby:[
        "成功","几乎都是将会过","shuij"
    ]
}

router.get("/3",(req,res)=>{
    //将数据进行渲染
    res.render("3",person);
})
router.post("/api",(req,res)=>{
    res.send("拿到数据了"+JSON.stringify(req.body));
})
module.exports=router;

